package com.maybach.core.manager;

import com.maybach.util.query.support.PageResult;
import com.maybach.common.model.CarFormalitiesDO;
import com.maybach.common.query.CarFormalitiesQuery;

import java.util.List;


/**
 * Manager for CarFormalities.
 */
public interface CarFormalitiesManager {
    /**
     * query count by query condition.
     */
    int countByQuery(CarFormalitiesQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CarFormalitiesQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(CarFormalitiesDO record);

    /**
     * insert selective.
     */
    long insertSelective(CarFormalitiesDO record);

    /**
     * select by query condition.
     */
    List<CarFormalitiesDO> selectByQuery(CarFormalitiesQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<CarFormalitiesDO> selectByQueryWithPage(CarFormalitiesQuery query);

    /**
     * select by primary key.
     */
    CarFormalitiesDO selectByPrimaryKey(Long id);

    /**
     * 根据订单宝ID交车手续信息
     * @param outOrderId
     * @return
     */
    CarFormalitiesDO selectByOutOrderId(Long outOrderId);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( CarFormalitiesDO record,  CarFormalitiesQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(CarFormalitiesDO record, CarFormalitiesQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CarFormalitiesDO record);
}